package net.borlis.sample.service.repositories.schema;

/**
 * @author alex@borlis.net on 23.07.2014.
 */
public class SchemaConfigurationInitError extends Error {

    private static final String MESSAGE = "The configuration schema file cannot be loaded.";

    private SchemaConfigurationInitError() {
        super();
    }

    private SchemaConfigurationInitError(String message) {
        super(message);
    }

    private SchemaConfigurationInitError(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Throw the init error with the real cause.
     *
     * @param cause the real exception.
     */
    public SchemaConfigurationInitError(Throwable cause) {
        super(MESSAGE, cause);
    }

    private SchemaConfigurationInitError(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
